import { Component, OnInit, Input } from '@angular/core';

@Component({
    styleUrls: ['./index.scss'],
    selector: 'options',
    template: `
        <option-switch *ngIf="option.type=='switch'" [option]="option"></option-switch>
        <option-minute *ngIf="option.type=='minute'" [option]="option"></option-minute>
    `
})
export class Option implements OnInit {
    @Input() option: any;
    constructor() { }

    ngOnInit() { }
}